<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>待审核请假单</title>
</head>
<body>
<table border="1px" width="85%" align="center" cellpadding="0" cellspacing="0">
	<tr align="center">
		<td>请假单编号</td>
		<td>请假者</td>
		<td>请假事项</td>
		<td>请假开始时间</td>
		<td>请假结束时间</td>
		<td>状态</td>
		<td>请假条提交时间</td>
		<td>操作</td>
	</tr>
	<c:forEach var="application" items="${approvalApplicationPage.applicationList }">
		<c:set var="applicationId" value="${application.applicationId }"></c:set>
		<tr align="center">
			<td>${applicationstatus.count }</td>
			<td>${application.applicationUser.userName }</td>
			<td>${application.applicationContent }</td>
			<td>${allTimeMap[applicationId].applicationBeginString }</td>
			<td>${allTimeMap[applicationId].applicationEndString }</td>
			<td>${application.applicationState }</td>
			<td>${allTimeMap[applicationId].operationString }</td>
			<td>
				<a href="${pageContext.request.contextPath }/approvalHandler/getUserForAddApproval.do?applicationId=${application.applicationId}">审批</a>
			</td>
		</tr>
	</c:forEach>
	<tr>
		<td colspan="8" align="right">
			共${approvalApplicationPage.pageNum }页&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${pageContext.request.contextPath }/applicationHandler/showApprovalApplication.do?currentPage=1">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${pageContext.request.contextPath }/applicationHandler/showApprovalApplication.do?currentPage=${approvalApplicationPage.prePage}">上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<c:forEach var="page" begin="1" end="${approvalApplicationPage.pageNum }">
			<a href="${pageContext.request.contextPath }/applicationHandler/showApprovalApplication.do?currentPage=${page}">${page}</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</c:forEach>
			<a href="${pageContext.request.contextPath }/applicationHandler/showApprovalApplication.do?currentPage=${approvalApplicationPage.nextPage}">下一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${pageContext.request.contextPath }/applicationHandler/showApprovalApplication.do?currentPage=${approvalApplicationPage.pageNum}">尾页</a>&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
	</tr>
</table>
</body>
</html>